Skip to content

docs fix: correct weightCol for percentage change aggregations in DataTable docs#3268

Closed
wrathagom wants to merge 5 commits into
evidence-dev:mainfrom
wrathagom:main
Closed

docs fix: correct weightCol for percentage change aggregations in DataTable docs#3268
wrathagom wants to merge 5 commits into
evidence-dev:mainfrom
wrathagom:main

Conversation

@wrathagom

Copy link
Copy Markdown

Description

re: #2592

Fixes incorrect weightCol values in DataTable documentation examples for percentage change aggregations.

When using totalAgg=weightedMean for percentage change columns, the weightCol should reference the baseline/previous value column, not the current value. This is because percentage changes are calculated relative to the original value (e.g., (new - old) / old).

Changes:

Example project fix (sites/example-project/src/pages/tables/total-rows/+page.md):
    sales_change_pct0: weightCol=sales_usd0k → weightCol=prev_sales_usd0k
    num_orders_change_pct0: weightCol=sales_usd0k → weightCol=prev_num_orders_num0
    aov_change_pct0: weightCol=sales_usd0k → weightCol=prev_aov_usd2

Documentation tip (sites/docs/pages/components/data/data-table/index.md):
    Added a tip box in the Total Row section explaining the correct usage of weightCol for percentage change aggregations

Checklist

  • For UI or styling changes, I have added a screenshot or gif showing before & after
  • I have added a changeset
  • I have added to the docs where applicable
  • I have added to the VS Code extension where applicable

@wrathagom
wrathagom had a problem deploying to Approval required to run action on external PR February 5, 2026 23:21 — with GitHub Actions Failure
@wrathagom
wrathagom had a problem deploying to Approval required to run action on external PR February 9, 2026 19:19 — with GitHub Actions Failure
devin-ai-integration Bot and others added 5 commits February 9, 2026 14:28
…e docs

- Update example-project total-rows page to use prev_* columns as weightCol
  for percentage change columns (sales_change_pct0, num_orders_change_pct0,
  aov_change_pct0)
- Add tip in DataTable documentation explaining that weightCol should be
  the baseline/previous value when aggregating percentage changes

Co-Authored-By: Caleb Keller <calebmkeller@gmail.com>
Co-Authored-By: Caleb Keller <calebmkeller@gmail.com>
- Rewrote RadarChart to follow the Sankey pattern with direct ECharts config
- Renamed inner component to InnerRadarChart.svelte
- Removed old Radar.svelte that used Chart wrapper (incompatible with radar coordinate system)
- Fixed lint errors and formatting

Co-Authored-By: Caleb Keller <calebmkeller@gmail.com>
- Moved from chart-testing to charts folder (alongside other chart docs)
- Added 15+ examples demonstrating all RadarChart features:
  - Basic single series radar
  - Multi-series comparison (Team A vs Team B)
  - Three-way product comparison
  - Circle shape vs polygon
  - Custom max value for consistent scaling
  - Fill opacity (high vs low)
  - Line width customization
  - Markers with custom size
  - Data labels showing values
  - Custom colors (fillColor, lineColor)
  - Color palette for multi-series
  - Combined styling options
  - Chart height customization
- Each example includes clear description of what the prop does

Co-Authored-By: Caleb Keller <calebmkeller@gmail.com>
Co-Authored-By: Caleb Keller <calebmkeller@gmail.com>
@wrathagom
wrathagom had a problem deploying to Approval required to run action on external PR February 9, 2026 19:53 — with GitHub Actions Failure
@wrathagom

Copy link
Copy Markdown
Author

Splitting into two separate PRs for cleaner review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant